/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author miguel
 */
@Entity
public class Medico implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private Long tprofesional;
    private String Apellido;
    private int documento;

    public String getApellido() {
        return Apellido;
    }

    public void setApellido(String Apellido) {
        this.Apellido = Apellido;
    }

    public int getDocumento() {
        return documento;
    }

    public void setDocumento(int documento) {
        this.documento = documento;
    }

    public Long getTprofesional() {
        return tprofesional;
    }

    public void setTprofesional(Long tprofesional) {
        this.tprofesional = tprofesional;
    }
    
    

    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (tprofesional != null ? tprofesional.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the tprofesional fields are not set
        if (!(object instanceof Medico)) {
            return false;
        }
        Medico other = (Medico) object;
        if ((this.tprofesional == null && other.tprofesional != null) || (this.tprofesional != null && !this.tprofesional.equals(other.tprofesional))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entity.Medico[ id=" + tprofesional + " ]";
    }
    
}
